package com.xxq.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxq.common.utils.PageUtils;
import com.xxq.common.valid.UpdateGroup;
import com.xxq.gulimall.product.entity.BrandEntity;
import com.xxq.gulimall.product.entity.CategoryBrandRelationEntity;
import com.xxq.gulimall.product.entity.CategoryEntity;
import org.springframework.validation.annotation.Validated;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author xxq
 * @email 1607903138@qq.com
 * @date 2022-04-28 20:20:13
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void updateBrandName(BrandEntity brand);

    void updateCatelogName(CategoryEntity category);

    List<CategoryBrandRelationEntity> queryBrands(Long catId);

    List<CategoryBrandRelationEntity> queryCategory(Long brandId);

    void saveRelation(CategoryBrandRelationEntity categoryBrandRelation);
}

